import request from "@/api/request"
// 获取会员列表数据
export function getMemberListApi(params:object) {
    return request({
        url: 'member',
        method: 'get',
        params
    })
}
// 根据ID获取会员详细信息
export function getMemberApi(id:number) {
    return request({
        url: `member/${id}`,
        method: 'get'
    })
}
// 会员充值
export function rechargeApi(data:object) {
    return request({
        url: 'member/recharge',
        method: 'put',
        data
    })
}

// 删除会员信息
export function deleteMemberApi(id: number) {
    return request({
        url: `member/${id}`,
        method: 'delete'
    })
}

